package com.stylefeng.guns.modular.pay.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 体现帐号
 * </p>
 *
 * @author stylefeng
 * @since 2018-09-11
 */
@TableName("pay_withdrawt_account")
public class WithdrawtAccount extends Model<WithdrawtAccount> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 银行卡或存折号码
     */
    @TableField("account_no")
    private String accountNo;
    /**
     * 银行卡或存折上的所有人姓名
     */
    @TableField("account_name")
    private String accountName;
    /**
     * 账号类型，00银行卡，01存折，02信用卡，不填默认为银行卡00
     */
    @TableField("account_type")
    private String accountType;
    /**
     * 账号属性，0私人，1公司。不填时，默认为私人0
     */
    @TableField("account_prop")
    private String accountProp;
    /**
     * 银行代码，存折必须填写
     */
    @TableField("bank_code")
    private String bankCode;
    /**
     * 有效期YYYYMMDD，用于信用卡
     */
    private String validate;
    /**
     * 信用卡CVV2
     */
    private String cvv2;
    /**
     * 开户证件类型
     */
    @TableField("id_type")
    private String idType;
    /**
     * 身份证
     */
    @TableField("id_no")
    private String idNo;
    /**
     * 手机号
     */
    private String tel;
    /**
     * 开户行所在省
     */
    private String province;
    /**
     * 开户行所在市
     */
    private String city;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public String getAccountProp() {
        return accountProp;
    }

    public void setAccountProp(String accountProp) {
        this.accountProp = accountProp;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getValidate() {
        return validate;
    }

    public void setValidate(String validate) {
        this.validate = validate;
    }

    public String getCvv2() {
        return cvv2;
    }

    public void setCvv2(String cvv2) {
        this.cvv2 = cvv2;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WithdrawtAccount{" +
        "id=" + id +
        ", accountNo=" + accountNo +
        ", accountName=" + accountName +
        ", accountType=" + accountType +
        ", accountProp=" + accountProp +
        ", bankCode=" + bankCode +
        ", validate=" + validate +
        ", cvv2=" + cvv2 +
        ", idType=" + idType +
        ", idNo=" + idNo +
        ", tel=" + tel +
        ", province=" + province +
        ", city=" + city +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
